package cn.yll.db.service.impl;

import cn.yll.db.mapper.CommonMapper;
import cn.yll.db.service.CommonService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * mybatis-plus通用方法实现
 * @author yangll
 * @param <M>
 * @param <T>
 */
public class CommonServiceImpl<M extends CommonMapper<T>, T> extends ServiceImpl<M, T> implements CommonService<T> {

    @Override
    public int saveBatch(List<T> entityList) {
        return baseMapper.insertBatchSomeColumn(entityList);
    }
}
